package com.goulin.sprmvc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.goulin.sprmvc.service.DemoTestService;

@Controller
public class DemoRestTestController {

	@Autowired
	DemoTestService demoTestService;
	
	@RequestMapping("/nomal")
	public String testPage(Model model){
		model.addAttribute("msg",demoTestService.saySomething());
		return "page";
	}
	
}
